//入口文件
// console.log('ok')

import Vue from 'vue'
import app from './App.vue'

//1.1导入路由的包
import VueRouter from 'vue-router'
//1.2安装路由
Vue.use(VueRouter)

//按需导入min-ui中的组件
import { Header,Swipe, SwipeItem } from 'mint-ui'
import 'mint-ui/lib/style.css'
Vue.component(Header.name, Header);
Vue.component(Swipe.name, Swipe);
Vue.component(SwipeItem.name, SwipeItem);


import './lib/mui/css/mui.css'
import './lib/mui/js/mui'
import './lib/mui/css/icons-extra.css'
import './lib/mui/fonts/mui-icons-extra.ttf'


//2.1导入vue-rescource
import VueResource from 'vue-resource'
//2.2安装rescource
Vue.use(VueResource)
 

Vue.config.devtools = true

//1.3导入自己的router.js路由模块
import router from './router.js'





var vm=new Vue({
    el:'#app', 
    render: c => c(app),
    //1.4 挂载路由对象到vm实例上
    router
})